package com.qumitech.visualnovel.datasource.console;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.console.RiskChatmsgDataDO;

public interface RiskChatmsgDataDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RiskChatmsgDataDO record);

    int insertSelective(RiskChatmsgDataDO record);

    RiskChatmsgDataDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RiskChatmsgDataDO record);

    int updateByPrimaryKey(RiskChatmsgDataDO record);

    int countRiskUserChats(@Param("content") String content, @Param("sender") String sender, @Param("receiver") String receiver, @Param("status") String status, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<RiskChatmsgDataDO> queryRiskUserChats(@Param("content") String content, @Param("sender") String sender, @Param("receiver") String receiver, @Param("status") String status, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("offset") int offset, @Param("limit") int limit);

    int delRiskUserChatsBySender(Long sender);

    List<RiskChatmsgDataDO> queryRiskUserChatsAlarm(@Param("autoid") int autoid);
}